package cn.com.greatwall.system.modules.security.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import cn.com.greatwall.system.modules.security.config.bean.LoginProperties;
import cn.com.greatwall.system.modules.security.config.bean.SecurityProperties;

/**
 * @Author herw
 * @Time 2020-06-21 9:20:22 PM
 * @Version 1.0
 * @Description: 配置文件转换Pojo类的 统一配置 类
 */
@Configuration
public class ConfigBeanConfiguration {
    @Bean
    @ConfigurationProperties(prefix = "login")
    public LoginProperties loginProperties() {
        return new LoginProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "jwt")
    public SecurityProperties securityProperties() {
        return new SecurityProperties();
    }
}
